import Vue from 'vue';
import Router from 'vue-router';

Vue.use(Router);

const routes = [
  {
    name: 'home',
    alias: ['/'],
    path:'/meeting/home',
    component: () => import('./view/meeting/home.vue'),
    meta: {
      title: '预约会议'
    }
  },
  {
    name: 'week-list',
    path:'/meeting/week-list',
    component: () => import('./view/meeting/week-list.vue'),
    meta: {
      title: '时间列表'
    }
  },
  {
    name: 'meeting-details',
    path:'/meeting/meeting-details',
    component: () => import('./view/meeting/meeting-details.vue'),
    meta: {
      title: '会议详情'
    }
  },
  {
    name: 'edit-details',
    path:'/meeting/edit-details',
    component: () => import('./view/meeting/edit-details.vue'),
    meta: {
      title: '编辑会议详情'
    }
  },
  {
    name: 'appointment',
    path:'/meeting/appointment',
    component: () => import('./view/meeting/appointment.vue'),
    meta: {
      title: '预约会议'
    }
  },
  {
    name: 'people-list',
    path:'/meeting/people-list',
    component: () => import('./view/meeting/people-list.vue'),
    meta: {
      title: '通讯录'
    }
  },
  {
    name: 'choose-list',
    path:'/meeting/choose-list',
    component: () => import('./view/meeting/choose-list.vue'),
    meta: {
      title: '选择参会人员'
    }
  },
  {
    name: 'choose-cloud',
    path:'/meeting/choose-cloud',
    component: () => import('./view/meeting/choose-cloud.vue'),
    meta: {
      title: '选择参会人员'
    }
  }
];

const router = new Router({ 
  // mode: 'history',
  routes: routes 
});

export {
  router
};
